import request from '@/utils/request';

export function getRealAlarmData({ h, pageNo, pageSize }) {
  return request('/tlss/command/AlarmSearch',
    { method: 'realAlarmData2', h, pageNo, pageSize },
    'POST'
  );
}

export function getRealAlarmDetail({ ord, pageNo, pageSize }) {
  return request('/tlss/command/AlarmSearch',
    { method: 'realAlarmDetail2', o: ord, pageNo, pageSize }
  );
}

export function ackAllAlarm(ord) {
  return request('/tlss/command/AlarmSearch',
    { method: 'ackAllAlarm2', o: ord },
    'POST'
  );
}
